import { Component, OnInit } from '@angular/core';
import { ActivatedRoute, Router } from '@angular/router';

@Component({
    selector: 'app-project',
    templateUrl: './project.component.html',
    styleUrls: ['./project.component.less']
})
export class ProjectComponent implements OnInit {
    role;
    isCloud;
    constructor(public route: ActivatedRoute) { }

    ngOnInit() {
        this.role = JSON.parse(localStorage.getItem('_user')).role;
        this.route.queryParams.subscribe(res => {
            this.isCloud = res.isCloud;
        });
    }

}
